home *** CD-ROM | disk | FTP | other *** search
- on mouseDown me
- set the cursor of sprite the spriteNum of me to [member "Closed Hand", member "Closed Hand Mask"]
- repeat while the stillDown
- if (the mouseV <= (the top of sprite 3 - 5)) and (the mouseV > 3) then
- set the locV of sprite 8 to the mouseV
- spriteBox(5, the left of sprite 5, the locV of sprite 8, the right of sprite 5, the bottom of sprite 5)
- spriteBox(6, the left of sprite 6, the locV of sprite 8, the right of sprite 6, the bottom of sprite 6)
- set the floatPrecision to 5
- set x0 to the right of sprite 4 - the left of sprite 4
- set y0 to the bottom of sprite 6 - the top of sprite 6
- set r0 to sqrt((x0 * x0) + (y0 * y0))
- put integer(180.0 / PI * float(atan(float(y0) / float(x0)))) into field "Ang1"
- put r0 into field "R1"
- put x0 into field "X1"
- put y0 into field "Y1"
- set the floatPrecision to 2
- put float(float(y0) / float(r0)) into field "Sine"
- put float(float(x0) / float(r0)) into field "Cosine"
- put float(float(y0) / float(x0)) into field "Tangent"
- set the locV of sprite 15 to the locV of sprite 8 - 3
- set the locH of sprite 13 to the left of sprite 4 + (x0 / 2) - 30
- set the locV of sprite 13 to the top of sprite 4 - (y0 / 2) - 30
- updateStage()
- end if
- end repeat
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- end
-
- on beginSprite me
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- set the floatPrecision to 5
- set x0 to the right of sprite 4 - the left of sprite 4
- set y0 to the bottom of sprite 6 - the top of sprite 6
- set r0 to sqrt((x0 * x0) + (y0 * y0))
- put integer(180.0 / PI * float(atan(float(y0) / float(x0)))) into field "Ang1"
- put r0 into field "R1"
- put x0 into field "X1"
- put y0 into field "Y1"
- set the floatPrecision to 2
- put float(float(y0) / float(r0)) into field "Sine"
- put float(float(x0) / float(r0)) into field "Cosine"
- put float(float(y0) / float(x0)) into field "Tangent"
- set the floatPrecision to 5
- set the locV of sprite 15 to the locV of sprite 8 - 3
- set the locV of sprite 13 to the top of sprite 4 - (y0 / 2) - 30
- end
-
- on endSprite me
- set the cursor of sprite the spriteNum of me to 0
- end
-